package javacode.chapter07.homework;

//看能输出什么
class Demo{
    int i = 100;
    public void m(){
        int j = i++;//后++，赋值后+1
        System.out.println("i="+i);
        System.out.println("j="+j);
    }
}

class Test2 {
    public static void main(String[] args){
        Demo d1 = new Demo();
        Demo d2 = d1;
        d2.m();
        System.out.println(d1.i);
        System.out.println(d2.i);
    }
}